import 'vx-easyui/dist/themes/metro/easyui.css'
import 'vx-easyui/dist/themes/icon.css'
import './icons/icon-metro.css'
import './icons/icon-custom.css'
import 'vx-easyui/dist/themes/vue.css'
import EasyUI from 'vx-easyui'
import locale from 'vx-easyui/dist/locale/easyui-lang-zh_CN'

// 全局引入Toast
import './libs/toast/toast.css';
import Toast from './libs/toast/index';

// 对象和数组的深度克隆
import deepClone from './libs/function/deepClone.js'
// 对象深度拷贝
import deepMerge from './libs/function/deepMerge.js'

// http 请求
import http from "./libs/request"
// 路由跳转
import jumpway from "./libs/jumpway"

import VueClipboard from 'vue-clipboard2'




const $easy = {
	http: http,
	jumpway: jumpway,
	deepClone,
	deepMerge
}

const install = Vue => {

	Vue.use(EasyUI, {
		locale: locale
	})

	Vue.use(VueClipboard)

	Toast.install(Vue)
	Vue.prototype.$e = $easy
}

export default {
	install
}
